package janela;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Amanda
 */
public class MENU extends javax.swing.JFrame {

    /**
     * Creates new form MENU
     */
    public MENU() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuItem1 = new javax.swing.JMenuItem();
        jMenuItem2 = new javax.swing.JMenuItem();
        jMenuItem3 = new javax.swing.JMenuItem();
        jMenuBar1 = new javax.swing.JMenuBar();
        btnLista = new javax.swing.JMenu();
        itemGerenciar = new javax.swing.JMenuItem();
        itemListar = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        itemGerenciarDetetive = new javax.swing.JMenuItem();
        itemListarDetetive = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        itemGerenciarLocais = new javax.swing.JMenuItem();
        itemListarLocais = new javax.swing.JMenuItem();
        jMenu4 = new javax.swing.JMenu();
        itemGerenciarSuspeitos = new javax.swing.JMenuItem();
        itemListarSuspeitos = new javax.swing.JMenuItem();

        jMenuItem1.setText("jMenuItem1");

        jMenuItem2.setText("jMenuItem2");

        jMenuItem3.setText("jMenuItem3");

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setPreferredSize(new java.awt.Dimension(1024, 760));

        btnLista.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones/city2.png"))); // NOI18N
        btnLista.setText("Cidade");

        itemGerenciar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones/gerenciar16.png"))); // NOI18N
        itemGerenciar.setText("Gerenciar");
        itemGerenciar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemGerenciarActionPerformed(evt);
            }
        });
        btnLista.add(itemGerenciar);

        itemListar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones/list16.png"))); // NOI18N
        itemListar.setText("Listar");
        itemListar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemListarActionPerformed(evt);
            }
        });
        btnLista.add(itemListar);

        jMenuBar1.add(btnLista);

        jMenu2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones/loupe_b.png"))); // NOI18N
        jMenu2.setText("Detetive");

        itemGerenciarDetetive.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones/gerenciar16.png"))); // NOI18N
        itemGerenciarDetetive.setText("Gerenciar");
        itemGerenciarDetetive.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemGerenciarDetetiveActionPerformed(evt);
            }
        });
        jMenu2.add(itemGerenciarDetetive);

        itemListarDetetive.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones/list16.png"))); // NOI18N
        itemListarDetetive.setText("Listar");
        itemListarDetetive.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemListarDetetiveActionPerformed(evt);
            }
        });
        jMenu2.add(itemListarDetetive);

        jMenuBar1.add(jMenu2);

        jMenu3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones/pinslim.png"))); // NOI18N
        jMenu3.setText("Locais");

        itemGerenciarLocais.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones/gerenciar16.png"))); // NOI18N
        itemGerenciarLocais.setText("Gerenciar");
        itemGerenciarLocais.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemGerenciarLocaisActionPerformed(evt);
            }
        });
        jMenu3.add(itemGerenciarLocais);

        itemListarLocais.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones/list16.png"))); // NOI18N
        itemListarLocais.setText("Listar");
        itemListarLocais.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemListarLocaisActionPerformed(evt);
            }
        });
        jMenu3.add(itemListarLocais);

        jMenuBar1.add(jMenu3);

        jMenu4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones/suspectv.png"))); // NOI18N
        jMenu4.setText("Suspeitos");

        itemGerenciarSuspeitos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones/gerenciar16.png"))); // NOI18N
        itemGerenciarSuspeitos.setText("Gerenciar");
        itemGerenciarSuspeitos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemGerenciarSuspeitosActionPerformed(evt);
            }
        });
        jMenu4.add(itemGerenciarSuspeitos);

        itemListarSuspeitos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones/list16.png"))); // NOI18N
        itemListarSuspeitos.setText("Listar");
        itemListarSuspeitos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemListarSuspeitosActionPerformed(evt);
            }
        });
        jMenu4.add(itemListarSuspeitos);

        jMenuBar1.add(jMenu4);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 390, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 246, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void itemGerenciarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemGerenciarActionPerformed
       CidadeGerenciar c = new CidadeGerenciar();
       c.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
       c.setVisible(true);     
       
    }//GEN-LAST:event_itemGerenciarActionPerformed

    private void itemGerenciarDetetiveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemGerenciarDetetiveActionPerformed
       DetetiveGerenciar d = new DetetiveGerenciar();
       d.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
       d.setVisible(true);
    }//GEN-LAST:event_itemGerenciarDetetiveActionPerformed

    private void itemListarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemListarActionPerformed
    ListaCidade lista = new ListaCidade();
    lista.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    lista.setVisible(true);
    }//GEN-LAST:event_itemListarActionPerformed

    private void itemListarDetetiveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemListarDetetiveActionPerformed
      ListaDetetive ld = new ListaDetetive();
      ld.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
      ld.setVisible(true);
    }//GEN-LAST:event_itemListarDetetiveActionPerformed

    private void itemGerenciarLocaisActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemGerenciarLocaisActionPerformed
      Locais l = new Locais();
      l.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
      l.setVisible(true);
    }//GEN-LAST:event_itemGerenciarLocaisActionPerformed

    private void itemListarLocaisActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemListarLocaisActionPerformed
       ListaLocais ll = new ListaLocais();
       ll.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
       ll.setVisible(true);
    }//GEN-LAST:event_itemListarLocaisActionPerformed

    private void itemGerenciarSuspeitosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemGerenciarSuspeitosActionPerformed
       SuspeitosGerenciar s = new SuspeitosGerenciar();
       s.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
       s.setVisible(true);
    }//GEN-LAST:event_itemGerenciarSuspeitosActionPerformed

    private void itemListarSuspeitosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemListarSuspeitosActionPerformed
     ListaSuspeitos ls = new ListaSuspeitos();
     ls.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
     ls.setVisible(true);
    }//GEN-LAST:event_itemListarSuspeitosActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(MENU.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(MENU.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(MENU.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(MENU.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new MENU().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenu btnLista;
    private javax.swing.JMenuItem itemGerenciar;
    private javax.swing.JMenuItem itemGerenciarDetetive;
    private javax.swing.JMenuItem itemGerenciarLocais;
    private javax.swing.JMenuItem itemGerenciarSuspeitos;
    private javax.swing.JMenuItem itemListar;
    private javax.swing.JMenuItem itemListarDetetive;
    private javax.swing.JMenuItem itemListarLocais;
    private javax.swing.JMenuItem itemListarSuspeitos;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem3;
    // End of variables declaration//GEN-END:variables
}
